package com.abcode.userserver.common.vo;

import com.abcode.userserver.common.constant.Constant;

public class ResultVO {
  private Integer statusCode;
	private String message;
	private Object data;
	
	public ResultVO() {
		this.statusCode = Constant.ReturnStatusCode.SUCCESS;
		this.message="操作成功";
	}

	public ResultVO(Object data) {
		this.statusCode = Constant.ReturnStatusCode.SUCCESS;
		this.message="操作成功";
		this.data=data;
	}
	
	public ResultVO(Integer statusCode, String message) {
	  this.statusCode = statusCode;
	  this.message=message;
	}
	
	public ResultVO(String message, Object data) {
    this.statusCode =  Constant.ReturnStatusCode.SUCCESS;
    this.message=message;
    this.data=data;
  }
	
	public ResultVO(String message) {
    this.statusCode = Constant.ReturnStatusCode.SUCCESS;
    this.message=message;
  }
	
	
	public ResultVO(Integer statusCode, String message, Object data) {
		this.message=message;
		this.statusCode = statusCode;
		this.data=data;
	}
	public Integer getStatusCode() {
    return statusCode;
  }
    public void setStatusCode(Integer statusCode) {
    this.statusCode = statusCode;
  }
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
}
